 
  
 <%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>  
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<script type="text/javascript" src="${jspath}/js/note.js"></script>
 
	<!--学习笔记-->
	<div class="not_right" >
		<div class="not_righttitle">
			<div class="not_righttitle01"> 学习笔记</div>
			<div class="not_righttb">
				<div class="exam_title"> 
					<c:if test="${type =='1'}">
						<a href="#" onClick="switchNoteType(1)">
							<div id="mynote_div" class="exam_title01"> 我的笔记 </div>
						</a> <a href="#" onClick="switchNoteType(2)">
							<div id="allnote_div" class="exam_title02"> 全部笔记 </div>
						</a> 
					</c:if>
					<c:if test="${type =='2'}">
						<a href="#" onClick="switchNoteType(1)">
							<div id="mynote_div" class="exam_title02"> 我的笔记 </div>
						</a> <a href="#" onClick="switchNoteType(2)">
							<div id="allnote_div" class="exam_title01"> 全部笔记 </div>
						</a> 
					</c:if>
					<a href="#" onClick="addnote()">
					<div class="exam_title02" style="float:right;">
						<div class="add_img"><img src="/images/add0.png"/> </div>
						新增笔记 </div>
					</a> </div>
				<div class="exam_select">
					<div class="selectBox"> 
						<select id="search_note_sel" style="width:180px" >
							<option value="-1">所属课程（不限）</option>
							<c:forEach var="cour" items="${course}">
								<c:if test="${cour.course_id==course_id}"></c:if>
								<option <c:if test="${cour.course_id==course_id}">selected</c:if> value="${cour.course_id}">${cour.course_nm}</option>
							</c:forEach>
						</select>
					</div>
					<a href="#" onClick="searchNote()">
					<div class="exam_selectbutt"> 查&nbsp;&nbsp;询 </div>
					</a> </div>
				<c:forEach var="d" items="${pageData.data}">
					<div class="exam_content">
						<div class="quest_listimg"> <img src="../images/kczx_son/user02.jpg"> </div>
							<div class="exam_contlist">
								<div class="note_contlistl" id="share0001">
									<div class="exam_contlistl01" >
										<a href="my_course_list.htm" style="position:relative;float:left;">${d.note_nm}</a> 
										<span style="display:block;postion:relative;float:left; margin-left:10px;" id="share01">
										<c:if test="${d.share_yn==1 && type=='1' }">
											<img src="../images/share1.png"/></span>
										</c:if>
									</div>
									<div class="note_contlistl01" style="overflow:hidden;text-overflow:ellipsis"><nobr>${d.note_txt} </nobr></div>
									<div class="exam_contlistl02">所属课程： 
										<a href="http://www.zhuclass.com/course/detail/${d.course_id }" style="color:#0A8CD2" target="_blank" >${d.course_nm}</a>
										<c:if test="${type=='2' }">${d.user_rnm}</c:if>发表于:<fmt:formatDate value="${d.create_dt}" pattern="yyyy-MM-dd HH:mm" />
										<c:if test="${type=='1' }">
											<a href="#" onClick="delnote(this,'${d.id}')" style="margin-left:10px; color:#0A8CD2;">删除</a> 
											<c:if test="${d.share_yn==1 }">
												<a id="share001" href="#" style="margin-left:10px; color:#0A8CD2;" onClick="shareNote('${d.id}',0)">取消分享</a> 
											</c:if>
											<c:if test="${d.share_yn==0 }">
												<a id="share001" href="#" style="margin-left:10px; color:#0A8CD2;" onClick="shareNote('${d.id}',1)">分享</a> 
											</c:if>
										</c:if>
									</div>
								</div>
								<div class="quest_contlistr">
									<div class="quest_contlistr01" onClick="coolNote('${d.id}')">
										<div class="quest_contlistr02"> ${d.cool_cnt} </div>
									赞 </div>
								</div>
							</div>
						
					</div>
				</c:forEach>
			</div>
		</div>
		
		
		<!--  我是分页 -->
		 <%@ include file="../paging.jsp"%>
		
		
	</div>
	<!--end学习笔记--> 
	
	
	 		
	<!--新增笔记-->
	<div class="add_note" id="addnote">
		<div class="add_notetop">
			<div class="add_notetop01"> </div>
			新增笔记 <a href="#" onClick="note()">
			<div class="add_notecolse"> <img src="../images/close.png"/> </div>
			</a> </div>
		<div class="add_notetitle">
			<div style="position:relative;float:left;width:75px;height:28px;"> 选择分类 </div>
			<div  class="selectBox"> 
				<select id="addnote_course_sel">
					<c:forEach var="cour" items="${course}">
						<option value="${cour.course_id}">${cour.course_nm}</option>
					</c:forEach>
				</select>
			</div>
		</div>
		<div class="add_notetitle"> 笔记标题：
			<input id="add_note_title" type="text" style="width:500px;outline:none;">
		</div>
		<div class="add_notecontent"> 笔记内容：
			<textarea  id="add_note_content" style="width:500px;height:150px;outline:none;">
	
	</textarea>
		</div>
		<div class="add_notebottom">
			<input type="checkbox" id="add_note_share">
			<label for="share">分享笔记(对其它学友可见）</label>
		</div>
		<div class="add_notebutton">
			<input class="add_notebutton01" onClick="saveNote()" type="button" value="提交笔记" style="border:none;outline:none;">
			<a href="#" class="add_notebutton02" style="margin-left:20px;" onClick="note()"> 取消 </a> </div>
	</div>
	</div>
	<!--end新增笔记-->